﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hydrogen.MathExt.Expression.Functions
{
    internal class FunctionArcTan : FunctionBase
    {
        public override double Evaluate(params double[] args) => Math.Atan(GetArg(args));
    }

    internal class FunctionArcTan2 : FunctionBase
    {
        public override int ArgCount => 2;
        public override double Evaluate(params double[] args) => Math.Atan2(GetArg(args, 0), GetArg(args, 1));
    }
}
